/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.marcelo.agro.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import org.marcelo.comun.habilidades.Reload;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionRegistration;

/**
 *
 * @author marcelo
 */



@ActionID(
        category = "Root",
        id = "org.marcelo.agro.actions.ReloadAction")

@ActionRegistration(displayName = "#CTL_ReloadAction",
        iconBase = "org/marcelo/agro/recursos/Refresh.png"
        )

@ActionReferences({
    @ActionReference(path = "Menu/Edit", position = 1300), 
    @ActionReference(path = "Shortcuts", name = "F5")
})
public class ReloadAction implements ActionListener {
    
    private final Reload context;

    public ReloadAction(Reload context) {
        this.context = context;
    }
    
    @Override
    public void actionPerformed(ActionEvent e) {
        // TODO implement action body
        context.reload();
    }
}    

